package uk.co.cocking.getinline2.pipeline.io;

import java.io.StringWriter;
import java.util.List;

import uk.co.cocking.getinline2.pipeline.transformers.AbstractTransformer;

public class StringLineWriter extends AbstractTransformer<String, String> {

	private StringWriter stringWriter = new StringWriter();
	private LineWriter lineWriter = new LineWriter(stringWriter);

	@Override
	public List<String> transform(String line) {
		lineWriter.transform(line);
		return enlist();
	}
	
	@Override
	public String toString() {
		return stringWriter.toString();
	}
	
	

}
